//
//  AppDelegate.swift
//  weibosina
//
//  Created by zhangzhen on 16/6/3.
//  Copyright © 2016年 zhangzhen. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        //1.创建window
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        //2.创建控制器,并设置为跟控制器
        window?.rootViewController = ZHMainController()
        //替换主窗口
        window?.rootViewController = ZHNewFeatureViewController()
        //3.使其为主window
        window?.makeKeyAndVisible()
        
        //设置外观属性
        setApperence()
        
        return true
    }

    private func setApperence() {
        
        //设置全局的UINav外观属性
        UINavigationBar.appearance().tintColor = ZHAppearenceTint
        
        //设置全局的UITabBar的外观属性
        UITabBar.appearance().tintColor = ZHAppearenceTint
        
        
        
    }
  


}

